package cn.mdmm.service.impl.weixin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.mdmm.entity.weixin.WxAccountMenuMsgModel;
import cn.mdmm.mapper.weixin.WxAccountMenuMsgMapper;
import cn.mdmm.service.weixin.WxAccountMenuMsgService;
import cn.modoumama.service.base.impl.BaseServiceImpl;


/**
* 类名称：BalanceWxAccountMenuMsgPt对象定义<br>
* 类描述：菜单和图文消息关系表业务实现类<br>
* 类生产方式：工具自动生成代码<br>
* 创建人：dengqiang<br>
* 创建时间：2017-07-05 17:51:20<br>
* 修改人：  <br>
* 修改时间：<br>
* 修改备注：<br>
* @version   V1.0
*/

@Service
public class WxAccountMenuMsgServiceImpl extends BaseServiceImpl<WxAccountMenuMsgModel,Integer> implements WxAccountMenuMsgService{
	Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	WxAccountMenuMsgMapper currMapper;
	@Autowired
	public void setMapper(WxAccountMenuMsgMapper genericMapper) {
		super.setGenericMapper(genericMapper);
	}

	//------------------请在此添加自定义方法（开始）------------------
	@Override
	public Integer insert(Integer menuId, Integer msgId) {
		WxAccountMenuMsgModel wxAccountMenuMsgModel = new WxAccountMenuMsgModel();
		wxAccountMenuMsgModel.setMenuId(menuId);
		wxAccountMenuMsgModel.setMsgId(msgId);
		return insert(wxAccountMenuMsgModel);
	}
	//------------------请在此添加自定义方法（结束）------------------
}
